<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html>
<html>
<head lang="zh-CN">
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link href="css/bootstrap.min.css" rel="stylesheet">
<script src="js/jquery-1.7.2.min.js"></script>
<script src="js/jquery.min.js"></script>
<script src="js/bootstrap.min.js"></script>
<script src="js/jquery.validate.min.js"></script>
<script src="js/messages_zh.js"></script>
<title>Insert title here</title>
<style type="text/css">
	.inp1{
		width: 200px;
		background-color: #fff;
							    background-image: none;
							    border: 1px solid #ccc;
							    border-radius: 4px;
							    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.075) inset;
							    color: #555;
							    font-size: 14px;
							    height: 34px;
							    line-height: 1.42857;
							    padding: 6px 12px;
	}
</style>
</head>
<script type="text/javascript">
	$(function(){
		
	});
</script>
<body>
	<div style="height: 100%;width: 100% ;">
		<!-- 导航栏 -->
		<div style="background-color:#BFBDC2" class="navbar navbar-default navbar-fixed-top" role="navigation">
			<div class="container-fluid">
		    	<div class="navbar-header">
		      	<a class="navbar-brand" href="enterusermain"><img alt="加载失败" src="img/elmlogo.png" style="width:60px;heigth:28px"/></a>  <!-- logo标题 -->
		    	</div>
		
		    	<div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
			      	<ul class="nav navbar-nav navbar-right" style="margin-right: 50px">
			        	<li class="dropdown">
							<a href="#" class="dropdown-toggle" data-toggle="dropdown"><img alt="" src="img/order.png">我的订单<span class="caret"></span></a>
			        		<ul class="dropdown-menu" role="menu">
			        			<li><a href="pastuserorder">过往订单</a></li>
					            <li class="divider"></li>
					            <li><a href="currentuserorder">当前订单</a></li>
			        		</ul>
			        	</li>
			        	
			        	<li><a href="favorite"><img alt="" src="img/favorite.png" style="90%">我的收藏</a></li>
			        	<li><a href="shoppingcar"><img alt="" src="img/shoppingcar.png">我的购物车</a></li>
			        	<li><a href="updateUI">修改信息</a></li>
			        	<li><a href="index.jsp">退出登录</a></li>
			      	</ul>
		    	</div><!-- /.navbar-collapse -->
		  	</div><!-- /.container-fluid -->
		</div>
		<!-- 显示过往订单的所有信息 -->
		<div style="margin-top: 100px;">
			<div class="container">
			<div  class="col-md-12">
			<h3><img alt="" src="img/favorite.png" >过往订单</h3>
			<table class="table">
			
			     <c:forEach  items="${foodsize}" var="foodss"  varStatus="orderf">
				     <td>${orderf.index+1}</td>
				     	<c:forEach items="${foodsize.get(foodsize.indexOf(foodss))}" var="foods"  varStatus="pfs">
			     			<tr>
					     	<td WIDTH="200px">
					     		<img alt="" src="/upload${foods.foodimg}" style="width: 100px;height: 100px;">
					     	</td>	
					     	
					     	<td >
					     		<p style="margin-top: 40px"><a href="">${foods.foodname}</a></p>
					     	</td>
							
					     	<td>
					     		<p style="margin-top: 40px"><a href="">${foods.foodgenre}</a></p>
					     	</td>
					     	<td>
					     		<p style="margin-top: 40px">￥${foods.foodprice}元</p>
					     	</td>
					     	<td>
					     		<p style="margin-top: 40px">*${orderallnumfood.get(orderf.index).get(pfs.index)}</p>
					     	</td>
					     	</tr>
				     	</c:forEach>
			     		<tr>
			     		
			     			<td><button id="godiscuss" type="button" class="btn btn-info" style="margin-right: 100px;">菜品评价</button></td>
			     			<td></td>
			     			<td></td>
			     			<td style="margin-right: 100px;">
			     				总价： ￥<c:out value="${orderprice.get(foodsize.indexOf(foodss))}"></c:out>元
			     			</td>
			     		</tr>
			     	</c:forEach>
			     </table>
			</div>
		</div>
		</div>
	</div>
</body>


</html>